Repository navigation
feat(plugins): a directory for music-source plugins - #139
Merged
Merged
Conversation
Adds plugins/, one JSON file per music-source plugin, published in catalog.json for the /plugins directory every station serves (perminder-klair/subwave#2413). Seeded with the Music folder example. build-catalog.mjs validates each entry: the filename is the manifest name and not a built-in's, the repo is https, the apiVersion is set, and the conformance counts are present with no failed check. The add-plugin form takes the pasted manifest and the conformance kit's --json report; plugin-submission.yml derives the entry from them, turns away a report for another plugin or one with a failed check, and opens a PR with a reviewer checklist, since listing a plugin is a review of its code. report-plugin.yml is the takedown form.
The kit ships in the SDK package (perminder-klair/subwave#2417), so a plugin author needs no SUB/WAVE checkout. The form, plugins/README.md and the builder's message lead with the npx command and keep the checkout route as an alternative.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The catalog side of perminder-klair/subwave#2413. The station side, the
/pluginspage that renders this list, is perminder-klair/subwave#2418. They can merge in either order: a station without #2418 ignores the newpluginskey, and one with it shows an empty directory until this merges.Summary
buildPlugins()rules (the workflow mirrors them):The submission workflow builds the entry from what's pasted, not from typed fields:
The issue body is parsed with
JSON.parseinside github-script and never reaches a shell step. Nothing from the plugin's repository is fetched or run.Evidence
node scripts/build-catalog.mjs --check→✓ catalog valid (… apps=13 plugins=1). The only warning,personas/trevor, was there before.plex.jsonshadowing a built-in;Bad_Name.json;pluginthat doesn't match its filename, an http repo,apiVersion: 0,checkedWith: "latest",hostFiles: "yes"andfail: 2, all in one entry;--jsonreport produced a branch,plugins/folder.json, a PR, andbuilt=true. That generated entry passes--check.latestversion, aplexmanifest, and a report for another plugin with 1 failure got one comment listing all six problems, plusneeds-info.{}: before the fix it also said "0 failed check(s)"; after, it says the report has no checks.ok: falsewith no failed checks: comments "not marked"ok": true".npm --prefix router run conformance -- docs/examples/sources/folder --config path=<3 tracks, 2 albums, cover.jpg> --jsongave 15 passed, 2 warnings, 0 failed, 6 skipped. The warnings are by design: no durations or genres, since the example reads no tags.plugin-submission,plugin-reportandpluginsnow exist on this repo, styled like the app labels.Merge Danger
Door: two-way
Reverting removes the folder and the forms. The bot rebuilds
catalog.jsonwithoutplugins.Blast Radius: catalog
pluginsin the live catalog.json for every station. Stations on releases without feat(web): a /plugins directory for community music-source plugins perminder-klair/subwave#2418 ignore the key, since the controller and web read only the keys they know.developtree, because the router isn't in a release yet. It has nocheckedWithuntil that release exists.